<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of DBHandle
 *
 * @author vlad
 */
class DBHandle extends SCDB{
    
    public function __construct($inConfig) {
        // print "Creating DBHandle\n";
        parent::__construct($inConfig);
        
    }
    
    public function SelectDatabase($dbName) {
        parent::SelectDatabase($dbName);
    }
    
    public function GetSelectedDatabase() {
        $res = $this->Q("select database();");
        while ($row = mysql_fetch_array($res)) {
            return $row[0];
        }
        return NULL;
    }
}

?>
